//============================================================================
// Name        : zad5.cpp
// Author      : Korovin Alexey
// Version     :
// Copyright   : 
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include "array.h"

int main() {
	Array arr(2);
	for(int i=0; i<100; ++i) {
		arr.push_back(i);
	}

	Array arr2(arr);
	std::cout << arr.get(78) << "\n";
	std::cout << arr2.get(78) << "\n";

	arr.set(50, 999);
	std::cout << arr.get(50) << "\n";
	std::cout << arr2.get(50) << "\n";

	arr2 = arr;
	std::cout << arr.get(50) << "\n";
	std::cout << arr2.get(50) << "\n";

	return 0;
}
